package com.drg.center.entity.result;

import com.guaike.core.entity.annotation.EnumConvert;
import com.guaike.core.entity.enums.EnableStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: zhangxilin
 * @Date: 2023/10/26
 */
@ApiModel("字典类型VO")
@Data
public class SysDictVO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("类型编码")
    private String dictCode;

    @ApiModelProperty("类型名称")
    private String dictName;

    @ApiModelProperty("状态(0:停用,1启用)")
    @EnumConvert(clazz = EnableStatusEnum.class,from = "code",to="desc")
    private Integer status;

    @ApiModelProperty("是否系统字典（1: 系统字典, 0:业务字典）")
    private Boolean isSys;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("字典项信息")
    private List<SysDictItemVO> items;
}
